class AnalysisController < ApplicationController


	
  def select_view
    puts "=====",__method__,"====="
    user_name=session[:user_name]
    @test="123";

    @p_hash=Hash.new
    @projects=Project.where("user_name=?",user_name)
    @projects.each do |p|
      members=Member.where("project_id=?",p.project_id)
      @p_hash[p.project_id]=members
    end



    # @members=Member.find_by_sql("SELECT DISTINCT project_id FROM members WHERE user_name = "+user_name)
    # members=Member.where("user=? AND ")
  end



end
